The following documentation contains test scripts
and expected results for validating the CDISC Builder
Oedervar tool. Do the following to verify proper
installation:
- Start CDISC Builder application by double
clicking on the desktop icon.
-
Perform each test by performing the steps specified
by the instructions.
- Evaluate the results of each step by comparing
them with results described in the Documentation
column.
| Script
|
Description
|
Documentation
|
| Source Data |
Type
invalid path.
Navigate
to location with no SAS datasets.
Path
name that is longer than 200 characters.
Use
[...] path navigation.
|
Instructions
1
|
| Data Sets |
List
of datasets match what is in the selected path.
Verify
preview button with a separate PROC PRINT.
|
Instructions
2
|
| Variables |
List of variables are the same as
those in the selected dataset.
Verify through PROC CONTENTS.
Select all button toggles.
|
Instructions
3
|
| Keys |
Selected keys work from the -> and
<- buttons.
The move up and down buttons change
the key order.
Select all button toggles.
|
Instructions 4
|
|
Related Domain
|
Verify list of domains matches list
in documentation.
If CDISC dataset is selected, related
domain is defaulted.
|
Instructions 5
|
| Base
Code |
Default base program is the name
of the selected dataset with the extension
of .sas.
The [...] button assigns the correct
path.
|
Instructions 6 |
| OK/Cancel |
OK
button applies all selected parameters.
Memory
of all fields are retained.
Cancel
does not apply logic.
|
Instructions 7 |
| Save
Code |
Program
is saved with proper comments
Generated
program is submitted and results verified
|
Instructions 8 |
Instructions
1
Start the CDISC Builder application from the icon in
desktop.
-
Create the following path if
it does not already exist.
c:\temp\cdiscbld\input\ordervar
-
Submit the following program:
libname testlib 'c:\temp\cdiscbld\input\ordervar';
data testlib.shoes;
set sashelp.shoes;
run;
data testlib.company;
set sashelp.company;
run;
data testlib.manage;
set sashelp.manage;
run;
-
Click on the ORDERVAR icon from
the main screen.
-
Enter a path which does not
exist into Source Data field and click on
the Enter button.
-
Verify that there is a dialog
displayed with the message saying that "The
field (Source Data) contains non-existing directory.".
-
Click on the OK button to close the message
box.
-
Create a directory which has
the name longer than 244 characters in c:\.
-
Enter this path into Source
Data field and click on the Enter button.
-
Verify that the warning
message is displayed:
The library path cannot longer than 244 characters because of SAS limit.
-
Click on the OK button to close the dialog.
-
Click on the [...] button
next to the Source Data entry.
-
Verify that the Select dialog
will open.
-
Browse to the long-name directory
has been created at step 7 and Click on the
OK button.
-
Verify that there is warning
message saying that "You cannot select a path
longer than 200 characters using Select dialog.
Please enter the path directly to the Source
Data field.".
-
Click on the OK button to close the message
dialog.
-
Click on the [...] button.
-
Browse to a directory which
does not contains any datasets and Click on
the OK button.
-
Click on the OK in ORDERVAR
screen.
-
Verify that the warning
message is displayed:
The Data Sets list
is empty.
-
Click on the OK button to
close the message.
-
Click on Cancel and then Exit
to close the application.
Instructions
2
Start the CDISC Builder application from the icon in
desktop.
-
Click on the ORDERVAR icon from
the main screen.
- Select C:\temp\cdiscbld\input\ordervar as
Source Data.
-
Verify that all datasets in
ordervar directory are listed on the dataset
list.
-
Select an empty directory as
Source Data.
-
Verify that the dataset is empty
due to empty directory.
-
Select C:\temp\cdiscbld\input\ordervar
as Source Data.
-
Select Company from dataset
list.
-
Click on the Preview button.
-
Verify that a report will be
generated and displayed on the screen.
-
Submit
the following program:
libname testlib 'c:\temp\cdiscbld\input\ordervar';
proc print data=testlib.company;
run;
-
Compare the result of PROC PRINT
and the report to verify that they contain the
same information.
-
Click on Cancel and then Exit
to close the application.
Instructions
3
Start the CDISC Builder application from the icon
in desktop.
-
Click on the ORDERVAR icon from
the main screen.
-
Select C:\temp\cdiscbld\input\ordervar
as Source Data.
-
Select company from dataset
list.
-
Do a PROC CONTENTS against
dataset company:
libname testlib 'c:\temp\cdiscbld\input\ordervar';
proc contents data=testlib.company;
run;
-
Verify that all variables of
dataset company have been listed on the variable
list by compare with the result of PROC CONTENTS.
-
Click on the Select All
button below Variables list.
-
Verify that all variables in
the list have been selected.
-
Click on the Select All button
again.
-
Verify that all variables in
the list have been deselected.
-
Click on the Cancel button and
then Exit to close the application.
Instructions
4
Start the CDISC Builder application from the icon
in desktop.
-
Click on the ORDERVAR icon from
the main screen.
-
Select C:\temp\cdiscbld\input\ordervar
as Source Data.
-
Select company from dataset
list.
-
Select LEVEL3 and click on the
-> button.
-
Verify that LEVEL3 has been
moved from the variable list to Key list.
-
Select JOB1 and LEVEL5 and click
on -> button.
-
Verify that both JOB1 AND LEVEL5
have been moved from the variable list to Key list.
-
Select LEVEL5 and click on the
MOVE UP button.
-
Verify that LEVEL5 has been
moved up over JOB1 in the list.
-
Select LEVEL3 and click on the
MOVE DOWN button.
-
Verify that LEVEL3 has been
moved down to the second position in the list.
-
Click on the Select All button
below the key list.
-
Verify that all the variables
in the key list have been selected.
-
Click Select All again.
-
Verify that all variables have
been deselected.
-
Select some variables from the
key list and click <- button.
-
Verify that selected variables
have been moved from key list back to variable
list.
-
Click on Cancel and then Exit
to close the application.
Instructions
5
Start the CDISC Builder application from the icon
in desktop.
-
Click on the ORDERVAR icon from
the main screen.
-
Verify that all the related
domain in the documentation is listed on the
related domain list.
-
Submit the following program.
libname testlib 'c:\temp\cdiscbld\input\ordervar';
data testlib.ae (label="Adverse Events");
set sashelp.shoes;
run;
data testlib.dm (label="Demographics");
set sashelp.company;
run;
-
Select c:\temp\cdiscbld\input\ordervar
as Source Data.
-
Select AE from dataset list.
-
Verify that the related domain
list has been defaulted to AE.
-
Select DM from dataset list.
-
Verify that the related domain
list has been defaulted to DM.
-
Select Company from the dataset
list.
-
Verify that the selected related
domain has been removed due to non-cdisc dataset.
-
Click Cancel and then Exit to
close the application.
Instructions
6
Start the CDISC Builder application from the icon
in desktop.
-
Click on the ORDERVAR icon from
the main screen.
-
Select c:\temp\cdiscbld\input\ordervar
as Source Data.
-
Select Company from dataset
list.
-
Verify that the base code file
has been changed to ordervar_company.sas.
-
Select shoes from dataset list.
-
Verify that the base code file
has been changed to ordervar_shoes.sas.
-
Click on the [...] button next
to the Base Code field.
-
Browse to C:\temp\cdiscbld\output.
-
Enter ordervar_basecode as file
name.
-
Click on the OK button.
-
Verify that the Base Code field
displays the correct path which is C:\temp\cdiscbld\output\ordervar_basecode.sas.
-
Select DM from dataset list
and change the Base Code name to
ordervar_basecode.sas.
-
Select LEVEL1, LEVEL2 and LEVEL3
and click on the -> button.
-
Click on the OK button.
-
Verify that the ordervar_basecode.sas
has been created in output directory.
-
Navigate to the
'C:\temp\cdiscbld\input\ordervar' and rename the DM dataset to DM2.
-
Submit the following program.
libname testlib 'c:\temp\cdiscbld\input\ordervar';
data testlib.dm (label="Demographics");
set sashelp.company;
run;
-
Right mouse click on the ordervar_basecode.sas
program and select Batch Submit.
-
Verify that there is no error
message in the log file.
-
Compare the two dataset DM and
DM2 to verify that they are the same.
-
Click Cancel and then Exit to
close the application.
Instructions
7
Start the CDISC Builder application from the icon
in desktop.
-
Click on the ORDERVAR icon from
the main screen.
-
Select 'c:\temp\cdiscbld\input\ordervar'
as Source Data.
-
Select AE from dataset list.
-
Select Product, Sales, Returns
from the variable list and click on the -> button.
-
Click on the OK button.
-
Verify that the program will
generate a report and display it on the screen.
The name of report such as:
AE dataset
The CONTENTS Procedure
-
Verify that dataset AE has been
sorted by selected key variables in the order
of them on the list.
-
Verify that AE has been added
a new variable name domain with value AE.
-
Verify that there is no new
base code program generated since this field
was not specified.
-
Click on the Cancel button.
-
Click on the ORDERVAR icon again.
-
Verify that all the selected
values from the previous time are retained on
the screen.
-
Click on the Cancel button.
-
Verify that it closes the ORDERVAR
dialog.
-
Click Exit to close the application.
Instructions
8
Start the CDISC Builder application from the icon
in desktop.
-
Submit the following program.
libname testlib 'c:\temp\cdiscbld\input\ordervar';
data testlib.ae (label="Adverse Events");
set sashelp.shoes;
run;
-
Click on the ORDERVAR icon from
the main screen.
-
Select
"C:\temp\cdiscbld\input\ordervar" as Source
Data.
-
Select AE from dataset list.
-
Select Product, Sales, Returns
from the variable list and click on the -> button.
-
Click on the "Save Code..." button.
-
Select
"C:\temp\cdiscbld\output"
as file path.
-
Enter ordervar_savecode as file
name.
-
Click on the OK button.
-
Verify that the View Code will
be displayed with the contents of the saved
program.
-
Verify that the ordervar_savecode.sas
program has been generated at output directory.
-
Verify that the header of the
program contains the information similar as
follow ( The user name and time may be different).
/*----------------------------------------------------*
* Program: ordervar_savecode.sas
* Path: D:\MY PROJECTS\SAS\CDISCBUILDER
* Description: Modifies the position order of
the variables for a
* specified dataset by key and alphabetical
order.
* By: Bui Nguyen Tuan Anh, %ordervar, 02/14/2006,
11:49:31 am
*-----------------------------------------------------*/
-
Right mouse click on the "ordervar_savecode.sas" program
and select Batch Submit.
-
Verify that there is no error
message in log file.
-
Do a PROC CONTENTS against
dataset AE:
libname testlib 'c:\temp\cdiscbld\input\ordervar';
proc contents data=testlib.ae;
run;
-
Verify that it has been sorted
by Product, Sales and Returns variables.
-
Verify that there is a new variable
named rdomain with the value AE.
-
Click on Cancel and then Exit
to close the application.
For more information, please contact MXI
.
|